package secondStage.part2.多态.three;

/**
 * @ClassName: [Animal]
 * @Description:
 * @Author: [黄劲松]
 * @CreateDate: [2021-03-14]
 * @Version: [v1.0]
 */
public class Animal {
    public int age;
    public String name;

    public Animal() {
    }

    public Animal(String name, int age) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void eat() {
        System.out.println("动物吃东西");
    }
}
